import { createApp } from "vue";
//引入elementui
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import App from "./App.vue";
//引入路由
import router from "@/router";
//引入全局css
import "@/assets/sass/global.scss";

//引入pinia
import { createPinia } from "pinia";
// 引入持久化插件
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
//引入导航守卫
import '@/composition/loginVerification/beforeEach'
const app = createApp(App);
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

app.use(pinia);
app.use(ElementPlus);
app.use(router);
app.mount("#app");
